package view;

import java.awt.GridLayout;
import java.awt.LayoutManager;
import java.awt.event.MouseListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class Index extends JFrame {

	private static final long serialVersionUID = 1L;
	
	private JButton userButton = new JButton("Show all users");
	private JButton bookButton = new JButton("Show all books");
	
	public Index() {
		setLayout(new GridLayout(2, 1));
		setBounds(100,100,200,150);
		add(userButton);
		add(bookButton);
		setVisible(true);
	}
	
	public void register(MouseListener ml) {
		userButton.addMouseListener(ml);
		bookButton.addMouseListener(ml);
	}
	
}
